package com.lzy.thread.controller;

import com.lzy.thread.common.GlobalEnv;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: lzy
 * Date:   2020/3/17 10:57
 * Description:
 **/
@RestController
public class AliveController {

    @Autowired
    private GlobalEnv globalEnv;

    @RequestMapping(value = "/alive", method = RequestMethod.GET)
    public Object alive() {
        return "Server is alive " + globalEnv.env;
    }

}
